<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <input type="hidden" id="fromTelA" name="fromTelA" th:value="${fromTelA}">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="post-form">
                <div class="select-list">
                </div>
            </form>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/mTelRcd";
    $(function () {
        var options = {
            url: prefix + "/telOver?fromTelA="+ $("#fromTelA").val(),
            sortName: "pkId",
            modalName: "历史记录",
            columns: [{
                checkbox: true
            },
                {
                    field: 'ck',
                    checkbox: true,
                    title: '&nbsp;',
                    visible:false
                },

                {
                    field: 'pkId',
                    title: 'pkid',
                    visible:false
                },
                {
                    field: 'telId',
                    title: 'telId',
                    visible: false
                },
                {
                    field: 'workFormNo',
                    title: '工单编号',
                    align: 'left',
                    halign: 'center',
                    sortable: true
                },
                {
                    field: 'setProId',
                    title: '性质',
                    align: 'center',
                    // formatter: function (value, row, index) {
                    //     return fmtWFormSort(value, row, index);
                    // }
                },
                {
                    field: 'wsTopic',
                    title: '主题',
                    align: 'left',
                    halign: 'center',
                    sortable: true
                },
                {
                    field: 'fmAreaName',
                    title: '属地',
                    align: 'left',
                    halign: 'center',
                    sortable: true
                },
                {
                    field: 'fromName',
                    title: '来电人',
                    align: 'center',
                    sortable: true
                },
                {
                    field: 'fromTelA',
                    title: '来电号码',
                    align: 'center',
                    sortable: true
                },
                {
                    field: 'dfmClaName',
                    title: '诉求类别',
                    align: 'center',
                    sortable: true
                },
                {
                    field: 'fmTime',
                    title: '创建时间',
                    align: 'center',
                    sortable: true
                },
                {
                    field: 'openFrom',
                    title: '公开',
                    align: 'center',
                    sortable: true,
                    // formatter: function (value, row, index) {
                    //     return fmtWFormOpen(value, row, index);
                    // }
                },
                {
                    field: 'lmtDate',
                    title: '办理时限',
                    align: 'center'
                },
                {
                    field: 'crtStepName',
                    title: '当前流程',
                    align: 'left',
                    halign: 'center'
                }

                // {
                //     field: 'myOP',
                //     title: '查看',
                //     align: 'center',
                    // formatter: function (value, row, index) {
                    //     return fmtToOPInGrid(value, row, index);
                    // }
                ]
        };
        $.table.init(options);
    });
    function submitHandler() {
        $.modal.close();
    }
</script>
</body>
</html>